package entity

import (
	"hobby-mate/common"
	"time"
)

// Activity 活动信息
type Activity struct {
	ActivityId    string    `json:"activityId" form:"activity_id"   gorm:"primary_key;comment:活动唯一标识符"`
	CreateAccount string    `json:"createAccount" form:"create_account"   gorm:"not null;comment:创建者"`
	Title         string    `json:"title" form:"title"  gorm:"not null;comment:活动标题"`
	Description   string    `json:"description" form:"description" gorm:"comment:活动描述"`
	Location      string    `json:"location" form:"location"  gorm:"not null;comment:活动地点"`
	AccountIds    string    `json:"accountIds" form:"account_ids" gorm:"comment:参加的人"`
	StartTime     time.Time `json:"startTime" form:"start_time"  gorm:"not null;comment:活动开始时间"`
	EndTime       time.Time `json:"endTime" form:"end_time"  gorm:"not null;comment:活动结束时间"`
	common.BaseEntity
}

func (Activity) TableName() string {
	return "t_activity"
}
